<%@page import="com.bookyourtrek.model.SearchListPojo"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span2"></div>
		<div class="span8">
			<div class="row-fluid">
				<div class="span3">
					<div class="well" style="padding: 8px 0;">
						<ul class="nav nav-list">
							<li class="nav-header">Adventures You Created</li>
							<li ><a href="userdashboard">Status</a></li>
							<li class="nav-header">Adventures You Booked</li>
							<li class="active"><a href="ordersummary">Order Summary</a></li>
							<li class="divider"></li>
							<li><a href="cancelticket">Cancel Ticket</a></li>
						</ul>
					</div>
				</div>
				<div class="span9">
					<table class="table">
						<caption></caption>
						<thead>
							<tr>
							<th>Order Date</th>
								<th>Order ID</th>
								<th>Quantity</th>
								<th>Amount (Rs.)</th>
								<th>Status</th>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="ordersummarypojo">
								<tr>
								<td><s:property value="%{orderdatetime}" /></td>
									<td>
									<s:form theme = "simple" action="orderdetails" method="post" validate="true">
									<s:hidden name="orderid" value="%{orderid}"></s:hidden>
									<s:submit name="orderdetails" theme = "simple" cssClass="btn" value="%{orderid}"></s:submit>
									
									</s:form>
									</td>
									<td><s:property value="%{quantity}" /></td>
									<td><s:property value="%{amount}" /></td>
									<td>
	  <s:if test='%{status == "0"}'><span class="label label-success">Confirmed</span></s:if>
	  <s:elseif test='%{status == "1"}'><span class="label label-important">Canceled</span></s:elseif>
	  <s:elseif test='%{status == "2"}'><span class="label label-warning">Payment Pending</span></s:elseif>
	  </td>
	  <!-- <td>
	  <s:if test='%{status == "0"}'>
	  <s:form cssClass="form-horizontal" action="cancelorder" method="post" validate="true">
	  <s:hidden name="orderid" value="%{orderid}"></s:hidden>
	  <s:submit name="cancelorder" theme = "simple" cssClass="btn btn-small btn-warning" value="Cancel"></s:submit>
	  </s:form>
	  </s:if> 
	  </td>-->
								</tr>
							</s:iterator>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<div class="span2"></div>
	</div>
</div>
